<?php
// +----------------------------------------------------------------------
// | makePHP 
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://makephp.org All rights reserved.
// +----------------------------------------------------------------------
// | Licensed BSD.(http://www.make.org/BSD-license.txt)
// +----------------------------------------------------------------------
// | Author: 叁石(sanshi) <sanshi0815@tom.com>
// | Author: 白家昌<baijc2004cn@126.com>
// +----------------------------------------------------------------------

/**
 * Object
 * base class
 * @version		1.0.0
 * @author		sanshi
 */
include_once(SMARTY_PATH."Smarty.class.php");

Class TplObject extends Smarty
{
		public function TplObject()
		{
				global $smarty_con_arr;
				if(false == isset($smarty_con_arr) OR false == is_array($smarty_con_arr) OR 0 >= sizeof($smarty_con_arr)) return;
				
				foreach($smarty_con_arr as $key => $val){
						$this->{$key} = $val;
				} 
		}
		
		public function __construct()
		{
				$this->TplObject();
		}
}
?>